package com.lycansoft.drlrmb;

import android.content.Context;

public class GameBoard {
	/*
	 * 1 = CARROT BACKGROUND; 2 = DRLABRAT; 3,4,5 = ENEMY TERRAIN POSIBLE DEFENSE BARRICADE
	 * 6 TO 12 ENEMY TERRAIN; 13 = FATHERS BUNNIES.
	 */
	public static final int NUM_CELLS_LONG = 13;	
		
	public static final int NUM_CELLS_HIGH = 8;
	
	public static final int INIT_MATRIX_Y_PERC = 20;
	public static final int END_MATRIX_Y_PERC = 90;
	public static final int INIT_MATRIX_X_PERC = 10;
	public static final int END_MATRIX_X_PERC = 100;
	
	public static final int INIT_COMMAND_MENU_Y_PERC = 90;
	public static final int END_COMMAND_MENU_Y_PERC = 100;
	public static final int INIT_COMMAND_MENU_X_PERC = 10;
	public static final int END_COMMAND_MENU_X_PERC = 90;
	
	public static final int INIT_UPPERBKG_Y_PERC = 0;
	public static final int END_UPPERBKG_Y_PERC = 20;
	public static final int INIT_LOWERBKG_Y_PERC = 90;
	public static final int END_LOWERBKG_Y_PERC = 100;
	
	public static final int INIT_GUN_MENU_Y_PERC = 10;
	public static final int END_GUN_MENU_Y_PERC = 90;
	public static final int INIT_GUN_MENU_X_PERC = 0;
	public static final int END_GUN_MENU_X_PERC = 10;
	
    public static final float CELL_HEIGHT = 4; // CALCULATED AS DIPS
    public static final float CELL_WIDTH = 4; // CALCULATED AS DIPS
	
    private int actualCellHeight;
    private int actualCellWidth;
    private int cells[][]; //x,y del punto medio representativo de la celda calculado matemáticamente.
    private int screenHeight;
    private int screenWidth;
    private float densityScalar;
    
    public GameBoard(Context context) {
    	densityScalar = context.getResources().getDisplayMetrics().density;
    	screenHeight = context.getResources().getDisplayMetrics().heightPixels;
    	screenWidth = context.getResources().getDisplayMetrics().widthPixels;
    	actualCellHeight = (int) (CELL_HEIGHT * densityScalar + 0.5f);
    	actualCellWidth = (int) (CELL_WIDTH * densityScalar + 0.5f);    	
    }    
}